<div class='p-w l-lr t-index'><div class='p-i-w'>
	
		<!-- layer -->
		<div class='l-box l-l'>
			<?php
				$model = new Travel();	
				$form = $this->beginWidget('CActiveFormAdv',array(
				'action' => Yii::app()->controller->createUrl('travelList'),
				'method' => 'get',
			))?>
			<!-- section -->
			<div class="sb-w travel-search">
				<div class="sb-title">
					<div class='travel-search-bg'>线路导航</div>
					<div class='travel-search-scope'>
						<a href='<?php echo Yii::app()->controller->createUrl('travelList',array('Travel[scopeVal]'=>'internalTravel'))?>' class='fc-blue' target='<?php echo Yii::app()->option->get('travel_list_target');?>'>国内游</a>
						|
						<a class='fc-blue' href='<?php echo Yii::app()->controller->createUrl('travelList',array('Travel[scopeVal]'=>'exitTravel'))?>' target='<?php echo Yii::app()->option->get('travel_list_target');?>'>出境游</a>
					</div>
				</div>
				<div class='sb-ci-w'>
					<table class='form-tb largespacing'>
						<tr><td width=500px><span class='bh-strong'>交通方式：</span><?php LyscHtml::buttonList($form, $model, 'traffic_type',  Yii::app()->enum->options('goods.trafficType', false));?></td></tr>
						<tr><td><span class='bh-strong'>价格区间：</span><?php LyscHtml::buttonList($form, $model, 'price',  Yii::app()->enum->options('goods.price', false));?></td></tr>
						<!-- <tr><td><div class="search_btn"><input type="submit" value="搜索" class="" id="btn_search"></div></td></tr> -->
					</table>
				</div>
			</div>
			<?php $this->endWidget()?>
			<div class="sb-w travel-search travel-hot-target">
				<h1 class="sb-title"><span>热门旅游城市</span></h1>
				<div class='sb-ci-w'>
					<?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => new CityRecommend,
						'data' => array(
							'travel' => $model,
						),
						'view' => 'application.views.partials.platform.travel.arrival_city',
					))?>
				</div>
			</div>
			
			<!-- section -->
			<div class="sb-w empty">
				<!-- 旅游左侧广告 -->
				<?php $this->widget('lib.ext.data.DataWidget',array(
					'model' => 'Ad',
					'criteria' => array(
						'condition' => 'type = :type',
						'params' => array(
							':type' => Ad::TYPE_M_TRAVEL_L
						),
						'limit' => '1'
					),
					'data' => array(
						'width' => 248,
						'height' => 104,
					),
					'view' => 'application.views.partials.ad.one'
				))?>
			</div>
			
			<!-- section 推荐网店 -->
			<?php $this->renderPartial('application.views.partials.public.shop',array('cateId'=>Goods::TYPE_TRAVEL));?>
		
		</div>
		
		<!-- layer -->
		<div class='l-box l-r'>
			<?php $form = $this->beginWidget('lib.widget.CActiveFormAdv',array(
				'method' => 'get',
				'action' => $this->createUrl('travelList')
			));?>
			<div class='travel-is-w'>
				<div>
					<?php echo $form->textField(new Travel(),'title',array(
						'id'=>'travel-name',
						'init-value' => '请输入旅游线路关键字'#目的地、主题、或关键字
					))?><input type='button' value='搜 索' onclick="$('#<?php echo $form->id?>').submit()"/>
				</div>
				<script>bindTextInit($('#travel-name'),$('#<?php echo $form->id?>'));</script>
			</div>
			<?php $this->endWidget()?>
			
			<div class='l-box l-l'>
			
				<!-- section -->
				<div class='sb-w empty'>
					<?php $this->widget('Sildeable', array(
						'width' => '470px',
		 				'height' => '198px',
						'items' => SildeShowService::getInstance()->getData('travel_p'),
					))?>
				</div>
				
				<!-- section -->
				<div class="bh-ly-jj-xiangou_1 box travel-news">
					<div class="bh-ly-jj-jingdian_h2 bh-ly-jj-borderBD">
						<div class="bh-ly-jj-tejiamen3" id='trigger-scenicNews'>
							<?php $this->widget('lib.ext.data.DataWidget',array(
								'model' => 'CategoryInformation',
								'criteria' => array(
						 			'condition' => 'parent_id = :pid',
									'params' => array(
										':pid' => CategoryInformation::TYPE_TRAVEL
									),
									'order' => 'id ASC',
									'limit' => 4,
								),
								'data' => array(
									'params' => array('service'=>'scenicNews'),
									'trigger' => 'trigger-scenicNews',
									'content' => 'content-scenicNews'
								),
								'view' => 'application.views.partials.public.category',
							))?>
						</div>
					</div>
					<ul class="bh-ly-jj-xianluzixun_1" id='content-scenicNews'>
					</ul>
				</div>
				
				<!-- section -->
				<div class='tabbox-w box red'>
					<div class='tabbox-header'>
						<h1>国内旅游</h1>
						<ul id='internal-travel'>
							<?php $this->widget('lib.ext.data.DataWidget',array(
									'model' => 'CityRecommend',
									'criteria' => array(
							 			'condition' => 'type = :type',
							 			'params' => array(
							 				':type' => CityRecommend::TYPE_TRAVEL_INTERNAL
							 			),
										'order' => 'sort DESC',
										'limit' => 6,
									),
									'data' => array(
										'params' => array('service'=>'internalTravel'),
										'trigger' => 'internal-travel',
										'content' => 'internal-content'
									),
									'view' => 'application.views.partials.platform.travel.start_city',
								))?>
						</ul>
						<div class='bh-clear'></div>
					</div>
					<div class='tabbox-body travel-hot' id='internal-content'>
					<!-- section 国内游 -->
						<?php /*$this->widget('lib.ext.data.DataWidget',array(
							'model' => 'Travel',
							'criteria' => array(
								'with' => 'profile',
								'condition' => 'profile.travel_province <> 35',
								'order' => 'listing_time DESC', //按上架时间倒序
					  			'scopes' => 'listing',
								'limit' => 5,
							),
							'view' => 'application.views.partials.platform.travel.city_travel',
						))*/?>
					</div>
				</div>
				
				<!-- section -->
				<div class='tabbox-w box orange'>
					<div class='tabbox-header'>
						<h1>出境旅游</h1>
						<ul id='exit-travel'>
						<?php $this->widget('lib.ext.data.DataWidget',array(
									'model' => 'CityRecommend',
									'criteria' => array(
							 			'condition' => 'type = :type',
							 			'params' => array(
							 				':type' => CityRecommend::TYPE_TRAVEL_EXIT
							 			),
										'order' => 'sort DESC',
										'limit' => 6,
									),
									'data' => array(
										'params' => array('service'=>'exitTravel'),
										'trigger' => 'exit-travel',
										'content' => 'exit-content'
									),
									'view' => 'application.views.partials.platform.travel.start_city',
								))?>
						</ul>
						<div class='bh-clear'></div>
					</div>
					<div class='tabbox-body travel-hot' id='exit-content'>
						<?php /*$this->widget('lib.ext.data.DataWidget',array(
							'model' => 'Travel',
							'criteria' => array(
								'with' => 'profile',
								'condition' => 'profile.travel_province = 35',
								'order' => 'listing_time DESC', //按上架时间倒序
								'scopes' => 'listing',
								'limit' => 6,
							),
							'view' => 'application.views.partials.platform.travel.city_travel',
						))*/?>
					</div>
				</div>
				
				
			</div>
			
			<!-- layer -->
			<div class='l-box l-r'>
			
				<!-- section -->
				<div class='sb-w simple-red'>
					<div class='sb-header-w'><h1 class='sb-title'><span>推荐路线</span></h1></div>
					<div class='sb-ci-w'>
						<?php $this->widget('lib.ext.data.DataWidget',array(
							'model' => 'Travel',
							'criteria' => array(
								'order' => 'listing_time DESC', //按上架时间倒序
					  			'scopes' => 'listing',
								'condition' => 'is_recommend = 1',
								'limit' => 6,
							),
							'view' => 'application.views.partials.tour.hotpath',
						))?>
						<div class='bh-clear'></div>
					</div>
					
				</div>
				
				<!-- section 旅游右侧中部广告 -->
				<div class="sb-w empty">
					<?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => 'Ad',
						'criteria' => array(
							'condition' => 'type = :type',
							'params' => array(
								':type' => Ad::TYPE_M_TRAVEL_R
							),
							'limit' => '1'
						),
						'data' => array(
							'width' => 230,
							'height' => 95,
						),
						'view' => 'application.views.partials.ad.one'
					))?>
				</div>
				
				<!-- section 热销线路 -->
				<div class="sb-w simple-red">
					 <div class='sb-header-w'><h1 class="sb-title"><span>热销线路</span></h1></div>
					 <div class='sb-ci-w'>
					<?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => 'Travel',
						'criteria' => array(
					  		'scopes' => 'sellRanking',
							'limit' => 10,
						),
						'view' => 'application.views.partials.tour.hotrecommend',
					))?>
					</div>
				</div> 
				
			</div>
			
		</div>
		
		
		<!-- layer -->
		<div class='bh-clear'></div>
		
		<!-- 友情链接 -->
		<div class="bh-youqinghref_bg">
			<?php $this->widget('lib.ext.data.DataWidget',array(
				'model' => 'FriendLink',
				'view' => 'application.views.partials.aircraft.friendlink',
			))?>
		</div>
	
</div></div>


